import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import(/* webpackChunkName: "one" */ '../views/login.vue')
  },
  {
    path: '/index',
    name: 'index',
    component: () => import(/* webpackChunkName: "two" */ '../views/index.vue'),
    children: [
      {
        path: 'booklist', 
        name: 'booklist',
        component: () => import('../views/booklist.vue')
      }
    ],

  },
  {
    path: '/people',
    name: 'people',
    component: () => import(/* webpackChunkName: "one" */ '../views/people.vue')
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router



